package com.htc.model.request;

public class BannerRequest extends PageRequest{

	private String title;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String convertWhereStr() {
		StringBuffer bf = new StringBuffer("where 1=1 ");
		if(title!=null&&title.length()>0) {
			bf.append(" and title like '%"+title+"%'");
		}
		return bf.toString();
		
	}
	
}
